#ifndef _DEF_H_
#define _DEF_H_ 1

#define EXIT 0x00
	
#define AX 0x10
#define BX 0x11
#define CX 0x12
#define DX 0x13
#define EX 0x14
#define SS 0x15
#define SI 0x16
#define SP 0x17
#define BP 0x18
#define DI 0x19


/***
** jmp 999
**/
#define JMP 0x20

#define JE 0x21
#define JNE 0x22

#define JG 0x23
#define JNG 0x24
#define JL 0x25
#define JNL 0x26
#define CMPRR 0x27
#define CMPRN 0x28




#define CALLN 0x2A
#define CALL 0x2B
#define RET 0x2C

#define ADDRR 0x30
#define ADDRN 0x31

#define SUBRR 0x32
#define SUBRN 0x33

#define MULRR 0x34
#define MULRN 0x35

#define DIVRR 0x36
#define DIVRN 0x37

/***
*
* mov ex,20
**/
#define MOVRN 0x40
#define MOVRR 0x41
#define LOADB 0x42
#define LOADW 0x43
#define LOADD 0x44

#define STOREB 0x45

#define STOREW 0x46

#define STORED 0x47


//操作堆栈中的数据（便于函数的调用）使用到bp寄存器
//loads ax,0x09;
#define LOADS 0x48
#define STORES 0x49





#define PUSH 0x50
#define POP 0x51

#endif
